﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using OnLineExam.BLL;

namespace OnLineExam.Web.mag
{
    public partial class SingleList : BasePage
    {
        public OnLineExam.Model.Users Umodel = new OnLineExam.Model.Users();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string userId = User.Identity.Name;
                var loginuser = new UserManager().GetModel(userId);
                Umodel = new OnLineExam.BLL.UserManager().GetModel(userId);

                #region  绑定部门 科目下拉菜单
                //this.ddlCourse.DataTextField = "CourseName";
                //this.ddlCourse.DataValueField = "CourseID";
                //this.ddlCourse.DataSource = new OnLineExam.BLL.Course().GetList("depid=" + depid);
                //this.ddlCourse.DataBind();
                //this.ddlCourse.Items.Insert(0, new ListItem("请选择科目", ""));


                //this.ddlDepinfo.DataTextField = "Name";
                //this.ddlDepinfo.DataValueField = "ID";
                //this.ddlDepinfo.DataSource = new OnLineExam.BLL.DepInfo().GetAllList();
                //this.ddlDepinfo.DataBind();
                //this.ddlDepinfo.Items.Insert(0, new ListItem("请选择", ""));
                #endregion
            }
        }
    }
}